package com.clive.xxweb.mapper;

import com.clive.xxweb.bean.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishMapper {
    int addDish(Dish dish);

    int updateDish(Dish dish);

    int deleteDish(Integer id);

    int delteDishCategoryById(Integer id);

    List<Dish> findCurrentPageDish(@Param("index") Integer index,@Param("limit") Integer limit,@Param("dish") Dish dish);

    int finddishTotal(@Param("dish") Dish dish);

    Dish findOne(Integer id);

    List<Dish> findAll();
}
